styleproperty: Use the long form to register background-color
authorBenjamin Otte <otte@redhat.com>
Mon, 26 Sep 2011 13:48:53 +0000 (15:48 +0200)
committerBenjamin Otte <otte@redhat.com>
Mon, 26 Sep 2011 14:00:25 +0000 (16:00 +0200)
We want to set a default value.

gtk/gtkstyleproperty.c

index c907bfd65a10308475efcd5683e5539f08ed0d62..483feaab02a3289cbc08c166920a6f9da16e42ff 100644 (file)
@@ -2551,12 +2551,18 @@ gtk_style_property_init (void)
                                           NULL,
                                           NULL,
                                           NULL);
-
-  gtk_style_properties_register_property (NULL,
-                                          g_param_spec_boxed ("background-color",
-                                                              "Background color",
-                                                              "Background color",
-                                                              GDK_TYPE_RGBA, 0));
+  _gtk_style_property_register           (g_param_spec_boxed ("background-color",
+                                          "Background color",
+                                          "Background color",
+                                          GDK_TYPE_RGBA, 0),
+                                          0,
+                                          NULL,
+                                          NULL,
+                                          NULL,
+                                          NULL,
+                                          NULL,
+                                          NULL,
+                                          NULL);
 
   _gtk_style_property_register           (g_param_spec_boxed ("font-family",
                                                               "Font family",